@layout("/common/_container.html",{title:"eZu租赁系统",js:["/assets/common/static/layui/layui.js","/assets/common/static/layui/index.js"],css:["/assets/common/static/layui/css/layui.css"]}){
<div class="row">
    <div class="col-12 card">
        <legend>热门车辆 </legend>
        <div class="layui-carousel" id="carImg">
            <div carousel-item="">
                @for(car in carList){
                    <fieldset class="layui-elem-field">
                        <legend>${car.carType}</legend>
                        <div class="layui-field-box">
                            颜色: ${car.carColor} <br>
                            已行驶里程: ${car.carMileage}/KM <br>
                            租金: ${car.rentMoneyOneDay} 元 / 天 <br>
                            估值: ${car.carPrice} 元 <br>
                            @if(isNotEmpty(car.rentTimes)){
                            租赁次数: ${car.rentTimes} 次
                            @}
                            点击租车: <button class="btn btn-xs btn-success" onclick="index.rentThisCar('${car.carId}')"><img src="assets/common/static/layui/images/face/37.gif"></button>
                        </div>
                        <div>
                            @if(tool.isEmpty(car.carImg)){
                                <img width="1000px" src="/assets/common/images/defaultSrc.jpg">
                            @}
                            @if(isNotEmpty(car.carImg)){
                                <img width="1000px" src="${car.carImg}">
                            @}
                        </div>
                    </fieldset>
                @}
            </div>
        </div>
    </div>
</div>
@}
